//
//  KLNetWorkService.h
//  KLCurrency
//
//  Created by apple on 2018/1/4.
//  Copyright © 2018年 bonc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "KLHistoricalRate.h"

@interface KLNetWorkService : NSObject

//获取最新汇率字典
+ (void)getCurrencyLayerLiveRateWithSuccess:(void (^)(NSDictionary *))success failure:(void (^)(NSString *))failure;


//获取历史汇率模型数组 测试使用
+ (void)testCurrencyLayerHistoricalRatesWithExchangeCurrency:(NSString *)cur1 localCurrency:(NSString *)cur2 datePeriod:(NSArray <NSString *>*)dates success:(void (^)(NSArray <KLHistoricalRate *>*))success failure:(void (^)(NSString *))failure;

//获取历史汇率模型数组
+ (void)getCurrencyLayerHistoricalRatesWithExchangeCurrency:(NSString *)cur1 localCurrency:(NSString *)cur2 datePeriod:(NSArray <NSString *>*)dates success:(void (^)(NSArray <KLHistoricalRate *>*))success failure:(void (^)(NSString *))failure;

@end
